#include <stdio.h>
#include <stdlib.h>
int main(int argc, char **argv)
 {
	if(argc==3)
	{
		char*srcfile=argv[1];
		 char*dstfile=argv[2];}
		 FILE *fp1=fopen("D:\\srcfile.txt","r");
		 if(fp1==0)
		 {
		 	printf("file is not exit");
		 	return -1;
		 }
		 FILE *fp2=fopen("D:\\dstfile.txt","w");
		 if(fp2==0)
		 {
		 	printf("file is not exit");
		 	return -1;
		 }
		 while(1)
		 {
		 	char temp=fgetc(fp1);
		 	if(feof(fp1))
		 	break;
		 	else
		 	fputc(temp,fp2); 
		 }
	fclose(fp1);
	fclose(fp2);
	return 0;
}

